﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Net.Forums
{
    /// <summary>Reports progress during a connect operation.</summary>
    /// <threadsafety static="true" instance="false"/>
    public sealed class ConnectProgress : SendReceiveProgress<ConnectProgress>
    {
        private readonly string hostName;

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>Gets the name of the host involved in the connect operation.</summary>
        public string HostName
        {
            get { return this.hostName; }
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        internal ConnectProgress(int percent, string hostName) : base(percent)
        {
            this.hostName = hostName;
        }
    }
}
